{include file="public/head" /}
  
  <body>
    <div class="x-body">
        <form class="layui-form" style="margin-left: 80px;" method="post" action="{:url('admin/Bill/billEdit')}">
            <input type="hidden" value="{$info.id}" name='id'/> 
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>所属小区:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width: 300px;" value="{$info.community_name}" onfocus=this.blur()>
                </div>
            </div> 
            <input type="hidden" value="{$info.community_id}" name='community_id'/> 
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>所属小区:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="room_address" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width: 300px;" value="{$info.room_address}" onfocus=this.blur()>
                </div>
            </div> 
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>费用类型:
                </label>
                <div class="layui-input-inline" style="width: 300px;">
                    <select name="cost_type">
                        <option value=""><------选择费用类型------></option>
                      {foreach $type as $typ}
                        <option value="{$typ.type}" {if $typ.type == $info.cost_type}selected{/if}>{$typ.type}</option>
                      {/foreach}
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>账期:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="acct_period" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;" value="{$info.acct_period}">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="phone" class="layui-form-label">
                    <span class="x-red">*</span>账单出账日期:
                </label>
                <div class="layui-input-inline">
                        <input class="layui-input" placeholder="开始日期" name="release_day" id="start" style="width: 300px;" value="{$info.release_day}">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>缴费截止日期:
                </label>
                <div class="layui-input-inline">
                        <input class="layui-input" placeholder="截止日期" name="deadline" id="end" style="width: 300px;" value="{$info.deadline}">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>账单金额:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="bill_entry_amount" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width: 300px;" value="{$info.bill_entry_amount}">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_repass" class="layui-form-label">
                </label>
                <button  class="layui-btn" lay-filter="add" lay-submit="">
                    修改账单
                </button>
            </div>
      </form>
    </div>
    <script>
        layui.use('laydate', function(){
            var laydate = layui.laydate;
            
            //执行一个laydate实例
            laydate.render({
            elem: '#start' //指定元素
            ,format: 'yyyyMMdd'
            });

            //执行一个laydate实例
            laydate.render({
            elem: '#end' //指定元素
            ,format: 'yyyyMMdd'
            });
        });
        
    </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();</script>
  </body>

</html>